import Vue from 'vue'
import App from './App'
import home from './pages/basic/home.vue'
Vue.component('home', home)
import contract from './pages/basic/contract.vue'
Vue.component('contract', contract)
import apply from './pages/basic/apply.vue'
Vue.component('apply', apply)
import wating from './pages/basic/watingCenter.vue'
import query from './pages/basic/queryCenter.vue'
import cuCustom from './colorui/components/cu-custom.vue'
Vue.component('cu-custom', cuCustom)
Vue.component('wating', wating)
Vue.component('query', query)
Vue.config.productionTip = false

Vue.config.warnHandler = function (msg, vm, trace) {
  // 检查是否是重复 key 的警告，如果是则忽略
  if (msg.includes('Duplicate keys detected')) {
    return;
  }
  // 其他警告正常打印
  console.warn(msg, trace);
};

console.log('Vue version:', Vue.version);

App.mpType = 'app'
const app = new Vue({
  ...App
})

app.$mount()
